import Vue from 'vue';
import Router from 'vue-router';
import beforeRouter from "./beforeRouter.js";
Vue.use(Router);
const originalPush = Router.prototype.push;
Router.prototype.push = function push (location) {
	return originalPush.call(this, location).catch(err => err)
}

const router = new Router({
	routes: [
		{
			path: '/',
			redirect: '/launch'
		},
		{
			path: '/launch',
			name: 'launch',
			meta: { title: '应用启动' },
			component: () => import('../views/Launch.vue')
		}
	]
})
beforeRouter(router);
export default router
